package com.svs.project.domain;

import com.svs.common.annotation.Excel;
import com.svs.common.utils.DateUtils;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.svs.common.base.BaseEntity;
import java.util.Date;

/**
 * 生产线计数详情表 counter
 * 
 * @author 杜建桥
 * @date 2025-06-20
 */
public class Counter extends BaseEntity<Counter> {
	private static final long serialVersionUID = 1L;
	
	/** 编号 */
	@Excel(name = "编号")
	private Integer id;
	/** 生产线编号 */
	@Excel(name = "生产线编号")
	private String code;
	/** 累计数量 */
	@Excel(name = "累计数量")
	private Integer num;
	/** 当前数量 */
	@Excel(name = "当前数量")
	private Integer num2;
	/**  */
	@Excel(name = "时间")
	private Date thisTime;
	public String thiTimeStr;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setCode(String code) 
	{
		this.code = code;
	}

	public String getCode() 
	{
		return code;
	}
	public void setNum(Integer num) 
	{
		this.num = num;
	}

	public Integer getNum() 
	{
		return num;
	}
	public void setNum2(Integer num2) 
	{
		this.num2 = num2;
	}

	public Integer getNum2() 
	{
		return num2;
	}
	public void setThisTime(Date thisTime) 
	{
		this.thisTime = thisTime;
	}

	public Date getThisTime() 
	{
		return thisTime;
	}

	public String getThiTimeStr() {
		if(thisTime == null){
			return null;
		}
		return DateUtils.parseDateToStr("yyyy-MM-dd HH:mm:ss", thisTime);
	}

	public void setThiTimeStr(String thiTimeStr) {
		this.thiTimeStr = thiTimeStr;
	}

	public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("num", getNum())
            .append("num2", getNum2())
            .append("thisTime", getThisTime())
            .toString();
    }
}
